Optimal. Leaf size=241 \[ \frac {a i (g h-f i) x}{g^2}-\frac {b i (e h-d i) n x}{2 e g}-\frac {b i (g h-f i) n x}{g^2}-\frac {b n (h+i x)^2}{4 g}-\frac {b (e h-d i)^2 n \log (d+e x)}{2 e^2 g}+\frac {b i (g h-f i) (d+e x) \log \left (c (d+e x)^n\right )}{e g^2}+\frac {(h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac {(g h-f i)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^3}+\frac {b (g h-f i)^2 n \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 241, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 8, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {2465, 2436,
2332, 2441, 2440, 2438, 2442, 45} \begin {gather*} \frac {b n (g h-f i)^2 \text {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g^3}+\frac {(g h-f i)^2 \log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^3}+\frac {(h+i x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac {a i x (g h-f i)}{g^2}+\frac {b i (d+e x) (g h-f i) \log \left (c (d+e x)^n\right )}{e g^2}-\frac {b n (e h-d i)^2 \log (d+e x)}{2 e^2 g}-\frac {b i n x (e h-d i)}{2 e g}-\frac {b i n x (g h-f i)}{g^2}-\frac {b n (h+i x)^2}{4 g} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2332
Rule 2436
Rule 2438
Rule 2440
Rule 2441
Rule 2442
Rule 2465
Rubi steps
\begin {align*} \int \frac {(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx &=\int \left (\frac {218 (-218 f+g h) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^2}+\frac {218 (h+218 x) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g}+\frac {(-218 f+g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^2 (f+g x)}\right ) \, dx\\ &=\frac {218 \int (h+218 x) \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g}-\frac {(218 (218 f-g h)) \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g^2}+\frac {(218 f-g h)^2 \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{g^2}\\ &=-\frac {218 a (218 f-g h) x}{g^2}+\frac {(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac {(218 f-g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^3}-\frac {(218 b (218 f-g h)) \int \log \left (c (d+e x)^n\right ) \, dx}{g^2}-\frac {(b e n) \int \frac {(h+218 x)^2}{d+e x} \, dx}{2 g}-\frac {\left (b e (218 f-g h)^2 n\right ) \int \frac {\log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g^3}\\ &=-\frac {218 a (218 f-g h) x}{g^2}+\frac {(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac {(218 f-g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^3}-\frac {(218 b (218 f-g h)) \text {Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e g^2}-\frac {(b e n) \int \left (\frac {218 (-218 d+e h)}{e^2}+\frac {218 (h+218 x)}{e}+\frac {(-218 d+e h)^2}{e^2 (d+e x)}\right ) \, dx}{2 g}-\frac {\left (b (218 f-g h)^2 n\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g^3}\\ &=-\frac {218 a (218 f-g h) x}{g^2}+\frac {109 b (218 d-e h) n x}{e g}+\frac {218 b (218 f-g h) n x}{g^2}-\frac {b n (h+218 x)^2}{4 g}-\frac {b (218 d-e h)^2 n \log (d+e x)}{2 e^2 g}-\frac {218 b (218 f-g h) (d+e x) \log \left (c (d+e x)^n\right )}{e g^2}+\frac {(h+218 x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g}+\frac {(218 f-g h)^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^3}+\frac {b (218 f-g h)^2 n \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 224, normalized size = 0.93 \begin {gather*} \frac {-2 b d^2 g^2 i^2 n \log (d+e x)+e \left (g i x (2 a e (4 g h-2 f i+g i x)+b n (2 d g i-e (8 g h-4 f i+g i x)))+4 a e (g h-f i)^2 \log \left (\frac {e (f+g x)}{e f-d g}\right )+2 b \log \left (c (d+e x)^n\right ) \left (g i (d (4 g h-2 f i)+e x (4 g h-2 f i+g i x))+2 e (g h-f i)^2 \log \left (\frac {e (f+g x)}{e f-d g}\right )\right )\right )+4 b e^2 (g h-f i)^2 n \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )}{4 e^2 g^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.50, size = 1605, normalized size = 6.66
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1605\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right ) \left (h + i x\right )^{2}}{f + g x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (h+i\,x\right )}^2\,\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}{f+g\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________